{extend name="index/base" /}
{block name="style"}{/block}
{block name="body"}
<blockquote class="layui-elem-quote">只支持阿里云短信，以下配置请在技术大神的监督下操作。</blockquote>
<fieldset class="layui-elem-field">
  <legend>阿里云短信配置</legend>
  <div class="layui-field-box">
    <form class="layui-form" action="{:url('edit')}">
      <div class="layui-form-item">
        <label class="layui-form-label">Access Key ID：</label>
        <div class="layui-input-inline">
            <input type="text" name="config[alisms_accessKeyId]" required  lay-verify="required" placeholder="请输入Access Key ID" autocomplete="off" class="layui-input" value="{$config.alisms_accessKeyId}">
        </div>
      </div>
      <div class="layui-form-item">
        <label class="layui-form-label">Access Key Secret：</label>
        <div class="layui-input-block" style="width:300px;">
          <input type="text" name="config[alisms_accessKeySecret]" required  lay-verify="required" placeholder="请输入Access Key Secret" autocomplete="off" class="layui-input" value="{$config.alisms_accessKeySecret}">
        </div>
      </div>
      <div class="layui-form-item">
        <label class="layui-form-label">签名设置：</label>
        <div class="layui-input-inline">
          <input type="text" name="config[alisms_sign_name]" required  lay-verify="required" placeholder="请输入短信签名" autocomplete="off" class="layui-input" value="{$config.alisms_sign_name}">
        </div>
      </div>
      <fieldset class="layui-elem-field layui-field-title">
		  <legend>短信模板设置</legend>
		  <div class="layui-field-box">
		    <div class="layui-form-item">
		        <label class="layui-form-label">注册&登录模板CODE：</label>
		        <div class="layui-input-inline">
		          <input type="text" name="config[alisms_tpl_reglogin]" required  lay-verify="required" placeholder="请输入模板CODE" autocomplete="off" class="layui-input" value="{$config.alisms_tpl_reglogin}">
		        </div>
		        <div class="layui-form-mid layui-word-aux">内容：验证码${code}，您正在登录，若非本人操作，请勿泄露。</div>
		    </div>
        <div class="layui-form-item">
            <label class="layui-form-label">身份验证模板CODE：</label>
            <div class="layui-input-inline">
              <input type="text" name="config[alisms_tpl_identity]" required  lay-verify="required" placeholder="请输入模板CODE" autocomplete="off" class="layui-input" value="{$config.alisms_tpl_identity}">
            </div>
            <div class="layui-form-mid layui-word-aux">内容：验证码${code}，您正在进行身份验证，打死不要告诉别人哦！</div>
        </div>
		  </div>
	  </fieldset>

      <div class="layui-form-item">
        <div class="layui-input-block">
          <button class="layui-btn" lay-submit lay-submit="" lay-filter="ajax-post" type="submit" target-form="layui-form">立即提交</button>
          <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
      </div>
    </form>
  </div>
</fieldset>

{/block}

{block name="script"}
<script type="text/javascript">
layui.use(['tool'],function(){
	var $ = layui.jquery,layer = layui.layer,form = layui.form,tool = layui.tool;
});
</script>
{/block}